package cn.ex.ymcc.constants;

/**
 * @Author: ZeWangmu
 * @Date: 2022/07/15/19:03
 * @Description: 参数校验异常处理
 */
public enum  MineError {
    NO_EMPTY_EMP_NAME("4001", "员工名字不能为空！！"),
    NO_EMPTY_EMP_EMAIL("4002", "邮箱不能为空"),

    COMMON_PHONE_NO_EMPTY("4101", "手机号不能为空"),
    COMMON_SERIOUS("4102", "大兄弟，手速不要太快！！"),
    COMMON_PHONE_ILLEGAL("4103", "手机号不合法"),
    COMMON_BLACK_ILLEGAL("4105","请申请解除黑名单"),
    NO_EMPTY_SECURITY_CODE("4104","请输入图形验证码"),
    USER_SMS_EMPTY("4201", "短信验证码失效！"),
    USER_SMSCODE_NOT_EQUALS("4202", "验证码输入错误！"),
    USER_EXISTS("4203", "用户已存在！");


    /**
     * 错误码
     */
    private String code;

    /**
     * 错误描述
     */
    private String message;

    MineError(String code, String msg) {
        this.code = code;
        this.message = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
